package com.example.shixun.service.impl;

import com.example.shixun.dao.CourseProgressDao;
import com.example.shixun.pojo.CourseProgress;
import com.example.shixun.service.CourseProgressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CourseProgressServiceImpl implements CourseProgressService {
    @Resource
    CourseProgressDao courseProgressDao;

    @Override
    public Integer saveCourseProgress(CourseProgress courseProgress) {
        return courseProgressDao.saveCourseProgress(courseProgress);
    }

    @Override
    public Integer deleteCourseProgressById(Integer courseId) {
        return courseProgressDao.deleteCourseProgressById(courseId);
    }

    @Override
    public Integer updateCourseProgressById(Integer courseId) {
        return courseProgressDao.updateCourseProgressById(courseId);
    }

    @Override
    public List<CourseProgress> selectCourseProgressAll() {
        return courseProgressDao.selectCourseProgressAll();
    }

    @Override
    public List<CourseProgress> selectCourseProgressById(Integer courseId) {
        return courseProgressDao.selectCourseProgressById(courseId);
    }
}
